<?php
/**
 * Author: Administrator
 * Date: 2022/7/15 1:32
 */

namespace DesignPatterns\Creation\AbstractFactory;


class HtmlFactory extends AbstractFactory
{
    public function createText($content): Html\Text
    {
        return new Html\Text($content);
    }

    public function createPicture($path, $alt = ''): Html\Picture
    {
        return new Html\Picture($path, $alt);
    }

}